from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
_magic_number = 2
_modified_time = 1212520777.6128869
_template_filename='/home/andi/devel/python/pylons/votafam/trunk/votafam/votafam/templates/admin/cad_candidato.mako'
_template_uri='/admin/cad_candidato.mako'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
_exports = []


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, '/admin.mako', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack.push_frame()
    try:
        __M_locals = dict(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        # SOURCE LINE 2
        context.write(u'\n<p style="text-align: center"><span class="destak">Cadastro de Candidatos</span></p>\n')
        # SOURCE LINE 4
        context.write(unicode(h.form(h.url(action='save',id=c.form_result['cdcandidato']),method='post')))
        context.write(u'\n')
        # SOURCE LINE 5
        context.write(unicode(h.hidden_field('cdcandidato',value=c.form_result['cdcandidato'] or '')))
        context.write(u'\n')
        # SOURCE LINE 6
        context.write(unicode(h.hidden_field('qtvotos',value=c.form_result['qtvotos'] or '0')))
        context.write(u'\n<div id="list" class="inner_context">\n  <table class="tablelist" width="100%" cellpadding="0" cellmargin="0">    \n    <tbody class="ligth_gray">\n      <tr>\n        <td align="right" width="15%"><strong>C&oacute;digo</strong></td>\n        <td width="*">')
        # SOURCE LINE 12
        context.write(unicode(h.text_field('idcandidato',class_='ed',size='10',value=c.form_result['idcandidato'] or '')))
        context.write(u'</td>\n      </tr>\n      <tr>\n        <td align="right"><strong>Nome</strong></td>\n        <td>')
        # SOURCE LINE 16
        context.write(unicode(h.text_field('nmcandidato',class_='ed',size='70',value=c.form_result['nmcandidato'] or '')))
        context.write(u'</td>\n      </tr>\n    </tbody>\n  </table>\n<br/>\n')
        # SOURCE LINE 21
        context.write(unicode(h.submit(value=' Salvar ',class_='ed')))
        context.write(u' <input type="button" name="btreset" id="btreset" value=" Limpar " class="ed"/>\n</div>\n')
        # SOURCE LINE 23
        context.write(unicode(h.end_form()))
        context.write(u'\n<br/>')
        return ''
    finally:
        context.caller_stack.pop_frame()


